package edu.cuit.avatar.entity;

import edu.cuit.avatar.annotations.TableId;
import edu.cuit.avatar.annotations.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDate;

/**
 * @author <a href="mailto:1020zhaodan@163.com">Adan</a>
 * @version 1.0
 * @date 2025/7/25 15:24
 */
@Setter
@Getter
@Accessors(chain = true) //链式编程===> 字段的setter中返回this
@TableName("dept")
public class Department {
    @Getter(onMethod_ = @TableId)
    private Integer id;

    private String name;

    private LocalDate createDate;

    private String intro;
}
